import request from '@/api/request'

// 登录方法
export function login(username, password) {
    const data = {
      username,
      password
    }
    return request({
      url: '/login',
      method: 'post',
      params: data
    })
}

// 退出登录
export function logout(token) {
  return request({
    url: '/logout/'+token,
    method: 'get',
  })
}